package com.justgame.project.service.system.feign;

import com.justgame.project.cloud.common.constant.AppConstant;

import com.justgame.project.service.system.feign.fallback.SysFileInfoClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Set;

/**
 * SysFileInfo 微服务接口
 * @author ZhouWeiBo
 * @create 2022/4/13
 */
@FeignClient(value = AppConstant.SYSTEM,fallback = SysFileInfoClientFallback.class)
public interface ISysFileInfoClient {
    String API_PREFIX = "/feign/sys-file-info";
    String DELETE_FILE_BY_PATHS = API_PREFIX + "/delete-file-by-paths";

    /**
     * 删除文件记录信息
     * @param paths 路径
     * @return Boolean.class
     */
    @DeleteMapping(DELETE_FILE_BY_PATHS)
    Boolean deleteFile(@RequestBody Set<String> paths);
}
